package com.javastudy.autowiredStudy.condationalStudy;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.*;

/**
 * @author madonghui
 * @title: MyConditionOnProperty
 * @projectName javaproject
 * @description: 自定义condition的注解
 * @date 2021/9/89:39 下午
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD})
@Conditional(MyCondition.class)
@Documented
public @interface MyConditionOnProperty {
    String name() default "";
    String havingValue() default "";
}
